package com.mapper;

import com.pojo.Role;
import com.vo.roleTreeVo;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    /**
     * 根据角色id查询角色对象
     * @param roleId
     * @return
     */
    public Role selectRoleByRoleId(Integer roleId);

    /**
     * 查询所有角色
     * @return
     */
    public List<Role> selectAllRole();

}